package com.ebook.ui.activity;

import com.ebook.entity.Book;
import com.ebook.ui.sync.WorkSyncer;

import javax.swing.*;

public class BookDetailActivity extends Activity{
    private JLabel preCode = new JLabel();
    JButton back = new JButton("回退");
    public BookDetailActivity(Book book) throws NoSuchFieldException, IllegalAccessException {
        super();
        this.add(preCode);
        preCode.setText("欢迎来到"+book.getBook_name()+"的详情页");
        preCode.setBounds(300,100,300,200);
        back.setBounds(300,300,300,200);
        this.add(back);
        back.addActionListener(e->{
            WorkSyncer.webView.popActivity();
//            System.out.println(WorkSyncer.webView.getCurrentActivity());
        });
    }
}
